﻿using MySql.Data.MySqlClient;
using System.Data;

namespace S_Examine.Infrastructure
{
	/// <summary>
	/// Dapper数据上下文
	/// </summary>
	public class DapperDbContext
	{
		private string MySqlConnectionStrings;

		public IDbConnection Connection { get; set; }

		public DapperDbContext(string settings)
		{
			MySqlConnectionStrings = settings;
			Connection = new MySqlConnection(MySqlConnectionStrings);
		}
	}
}
